package com.estate.utils;

public class DeleProjectUtil {

	public static int getDeleProjectInt(String deleProjectString){
		int deleProject = 0;
		
		if("未发布".equals(deleProjectString)){
			deleProject = 1;
		}else if("已发布".equals(deleProjectString)){
			deleProject = 2;
		}
		
		return deleProject;
	}
	
	public static String getDeleProjectString(int deleProjectInt){
		String deleProject = "";
		
		if(deleProjectInt == 1){
			deleProject = "未发布";
		}else if(deleProjectInt == 2){
			deleProject = "已发布";
		}
		return deleProject;
	}
}
